package com.canxin.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 学生信息
 * @author zhangdaihao
 * @date 2017-03-05 15:40:12
 * @version V1.0   
 *
 */
@Entity
@Table(name = "canxin_student", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class StudentsEntity implements java.io.Serializable {
	/**学号*/
	private java.lang.String id;
	/**chname*/
	private java.lang.String chname;
	/**enname*/
	private java.lang.String enname;
	/**sex*/
	private java.lang.String sex;
	/**birth*/
	private java.lang.String birth;
	/**classid*/
	private java.lang.String classid;
	/**classname*/
	private java.lang.String classname;
	/**gradeid*/
	private java.lang.String gradeid;
	/**gradename*/
	private java.lang.String gradename;
	/**graduation*/
	private java.lang.String graduation;
	/**status*/
	private java.lang.String status;
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  学号
	 */
	
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=false,length=64)
	public java.lang.String getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  学号
	 */
	public void setId(java.lang.String id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  chname
	 */
	@Column(name ="CHNAME",nullable=true,length=128)
	public java.lang.String getChname(){
		return this.chname;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  chname
	 */
	public void setChname(java.lang.String chname){
		this.chname = chname;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  enname
	 */
	@Column(name ="ENNAME",nullable=true,length=64)
	public java.lang.String getEnname(){
		return this.enname;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  enname
	 */
	public void setEnname(java.lang.String enname){
		this.enname = enname;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  sex
	 */
	@Column(name ="SEX",nullable=true,length=1)
	public java.lang.String getSex(){
		return this.sex;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  sex
	 */
	public void setSex(java.lang.String sex){
		this.sex = sex;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  birth
	 */
	@Column(name ="BIRTH",nullable=true,length=8)
	public java.lang.String getBirth(){
		return this.birth;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  birth
	 */
	public void setBirth(java.lang.String birth){
		this.birth = birth;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  classid
	 */
	@Column(name ="CLASSID",nullable=true,length=10)
	public java.lang.String getClassid(){
		return this.classid;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  classid
	 */
	public void setClassid(java.lang.String classid){
		this.classid = classid;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  classname
	 */
	@Column(name ="CLASSNAME",nullable=true,length=128)
	public java.lang.String getClassname(){
		return this.classname;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  classname
	 */
	public void setClassname(java.lang.String classname){
		this.classname = classname;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  gradeid
	 */
	@Column(name ="GRADEID",nullable=true,length=10)
	public java.lang.String getGradeid(){
		return this.gradeid;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  gradeid
	 */
	public void setGradeid(java.lang.String gradeid){
		this.gradeid = gradeid;
	}

	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  gradename
	 */
	@Column(name ="GRADENAME",nullable=true,length=128)
	public java.lang.String getGradename(){
		return this.gradename;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  gradename
	 */
	public void setGradename(java.lang.String gradename){
		this.gradename = gradename;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  graduation
	 */
	@Column(name ="GRADUATION",nullable=true,length=4)
	public java.lang.String getGraduation(){
		return this.graduation;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  graduation
	 */
	public void setGraduation(java.lang.String graduation){
		this.graduation = graduation;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  status
	 */
	@Column(name ="STATUS",nullable=true,length=2)
	public java.lang.String getStatus(){
		return this.status;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  status
	 */
	public void setStatus(java.lang.String status){
		this.status = status;
	}
	
	@Override
	public String toString() {
		return "StudentsEntity [id=" + id + ", chname=" + chname + ", enname=" + enname + ", sex=" + sex + ", birth="
				+ birth + ", classid=" + classid + ", classname=" + classname + ", gradeid=" + gradeid + ", gradename="
				+ gradename + ", graduation=" + graduation + ", status=" + status + "]";
	}
}
